function addHistory (newHash)
{
	unFocus.History.addHistory(newHash);
}

function onHistoryChange (newHash)
{
	thisMovie(applicationMovieClipName).changeHistory(newHash);
}

function thisMovie(movieName) 
{
	if (navigator.appName.indexOf("Microsoft") != -1) 
	{
        	return window[movieName];
	}
	else 
	{
        	return document[movieName];
    }
}

function getFlashVarsFromHash () 
{
	var result = "";

	if(location.hash != "")
	{
		result = location.hash;
		result = result.replace("#","");
	}

	return result;
}

unFocus.History.addEventListener('historyChange', onHistoryChange);